package ln.javatest.day11.demo02;
/*
测试含有泛型的接口
*/

public class Demo04GenericInterface {
    public static void main(String[] args) {
        //创建GenericInterfaceImpl对象
        GenericInterfaceImpl gi1 = new GenericInterfaceImpl();
        gi1.method("字符串"); //字符串
        //创建GenericInterfaceImpl2对象
        GenericInterfaceImpl2<Integer> gi2 = new GenericInterfaceImpl2<>();
        gi2.method(37); //37
        GenericInterfaceImpl2<Double> gi3 = new GenericInterfaceImpl2<>();
        gi3.method(3.7);  //3.7

    }
}
